<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/10/19
  Time: 15:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>展示颜色</title>
</head>
<%
    String color1 = "green,blue,black,red,yellow,pink";
    String[] strs = color1.split(",");
%>
<body>
    <%for (int i=0;i<strs.length;i++){%>
    <div style="background-color: <%=strs[i]%>;width: 100px;height: 100px"></div>
    <%}%>
</body>
</html>
